﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BlackBird.Models
{

	/// <summary>
	/// 比价单表，由供货商CompanyDM，和商品行组成
	/// </summary>

	public class BiJiaDanTableDM
	{
		public string Id { get; set; }

        /// <summary>
        /// 参考供应商
        /// </summary>
        public SupplierDM ReferenceCompany { get; set; } 

		public List<SupplierDM> Companies { get; set; }

		public List<OrderTableRowDM> ProductRows { get; set; }
	}

	/// <summary>
	/// 比加点里面的一行记录
	/// </summary>
	public class OrderTableRowDM
	{
		/// <summary>
		/// 序号
		/// </summary>
		public int XuHao { get; set; }


		/// <summary>
		/// 商品信息
		/// </summary>
		public ProductDM Product { get; set; }

        /// <summary>
        /// 参考价格
        /// </summary>
        public double? ReferencePrice { get; set; }

		/// <summary>
		/// 相关公司报价和审核价信息
		/// </summary>
		public List<SupplierDeclarePriceDM> SupplierDeclarePrices { get; set; }
	}

}